package com.qingyun.feedbackservice.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 课堂反馈
 * </p>
 *
 * @author your_name
 * @since 2025-08-23
 */
@Getter
@Setter
@TableName("tb_feedback")
public class Feedback implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * tb_user.id
     */
    @TableField("teacher_id")
    private Long teacherId;

    /**
     * 可选，绑定某节课
     */
    @TableField("schedule_id")
    private Long scheduleId;

    /**
     * 课程/班级自由文本
     */
    @TableField("course_text")
    private String courseText;

    /**
     * 反馈内容
     */
    @TableField("content")
    private String content;

    @TableField("createTime")
    private LocalDateTime createTime;

    @TableField("updateTime")
    private LocalDateTime updateTime;

    @TableField("student_id")
    private Long studentId;
}
